var webserverTest = require("webserver").create()
var router={
	'/hello':function(request, response){
        response.statusCode = 200;
        response.write('<!DOCTYPE html>\n<html><head><meta charset="utf-8"><title>hello world</title></head><body>Hello!</body></html>')
	},
	'404':function(request, response){
        response.statusCode = 404
		response.write('not found!')
	}
}
webserverTest.listen(81, function(request, response) {
	var route=router[request.url]||router[404]
	route(request,response)
	response.close();
})